package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {
    /**
     * 新增和编辑
     * @param strategyComment
     */
    void saveOrUpdate(StrategyComment strategyComment);

    /**
     * 高级查询
     * @param qo
     * @return
     */
    PageInfo query(StrategyCommentQueryObject qo);

    void save(StrategyComment strategyComment, String[] tags);

    /**
     * 根据点评Id获取点评的内容和点评作者的信息
     * @param commentId
     * @return
     */
    StrategyComment getCommentById(Long commentId);

    /**
     * 根据状态查询所有的点评
     * @param qo
     * @return
     */
    List<StrategyComment> allComments(StrategyCommentQueryObject qo);
    /**
     * 根据作者id查询所有的点评
     * @param qo
     * @return
     */
    PageInfo selectCommentsByAuthor(StrategyCommentQueryObject qo);

    /**
     * 通过攻略id查询攻略目录
     * @param strategyId
     * @return
     */
    //List<StrategyComment> selectByStrategyId(Long strategyId);
}
